package com.activemq.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component 
@ConfigurationProperties(prefix = "activeMq")
public class ActiveMqPropertiesConfig {
	public static String broker_url;
	public static String user;
	public static String password;
	public static String trustedPackages;
	public static boolean trustAllPackages;
	
	public String getBroker_url() {
		return broker_url;
	}
	public void setBroker_url(String broker_url) {
		this.broker_url = broker_url;
	}
	public String getUser() {
		return user;
	}
	public void setUser(String user) {
		this.user = user;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getTrustedPackages() {
		return trustedPackages;
	}
	public void setTrustedPackages(String trustedPackages) {
		//if(trustedPackages == null) return;
		this.trustedPackages = trustedPackages;
	}
	public static boolean getTrustAllPackages() {
		return trustAllPackages;
	}
	public static void setTrustAllPackages(boolean trustAllPackages) {
		ActiveMqPropertiesConfig.trustAllPackages = trustAllPackages;
	}
	
}
